package com.zslibrary.Enum;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import androidx.annotation.IntDef;

public class PipeResultDefine {
    final static public int ASYNC_ERROR=-1;
    final static public int ASYNC_TIMEOUT=-2;
    final static public int ASYNC_BUSY=-3;
    final static public int ASYNC_INTERRUPT=1;
    final static public int ASYNC_OK=0;
    final static public int SYNC_ERROR=-4;
    final static public int SYNC_BUSY=-5;
    final static public int SYNC_OK=2;

    @IntDef({
            ASYNC_ERROR,
            ASYNC_TIMEOUT,
            ASYNC_BUSY,
            ASYNC_INTERRUPT,
            ASYNC_OK,
            SYNC_ERROR,
            SYNC_BUSY,
            SYNC_OK
    })
    @Retention(RetentionPolicy.SOURCE)
    public @interface PipeResult{}
}
